#include "Login.h"
#include "ui_Login.h"

#include <QMessageBox>

Login::Login(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Login)
{
    ui->setupUi(this);
    qDebug()<<__FUNCTION__<<QThread::currentThreadId()<<endl;
    QMetaObject::invokeMethod(Login::myTCPClient,"init",Qt::AutoConnection);
}

Login::~Login()
{
    delete ui;
}


MyTcp* Login::myTCPClient=new MyTcp;
